<%@ page import="javax.sql.*"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html>
	<head>
		<html:base />
		<link rel="stylesheet" type="text/css" href="../resources/style.css" media="screen"/>

		<title><bean:message key="admin.title" /></title>
		
	</head>
	
	
	<body>
		<p class="sansserif">
		<div class="container">
		<div class="center_div">
			<table>
			<tr>
				<td><b><bean:message key="admin.by.reviewer.title" /></b></td>
				<td></td><td></td><td></td>
				<td><a href="../invalidate.jsp">Logout</a></td>
			</tr>
			</table>
			<br>
			
			<%
				Vector<String> reviewers = (Vector)request.getAttribute("reviewers");
				Vector<String> finished = (Vector)request.getAttribute("finished");
				Vector<String> unfinished = (Vector)request.getAttribute("unfinished");
			%>
			
			<table border="1">
				<tr>
					<th>Reviewer</th>
					<th>Finished</th>
					<th>Unfinished</th>
				</tr>
				<logic:iterate id="reviewer" name="reviewers" indexId="counter">
					<tr>
						<td>
							<bean:write name="reviewer"/>
						</td>	
						<td>						
							<html:link action="/applications1">
								<html:param name="reviewer" value="<%= reviewers.get(counter) %>" />
								<html:param name="finished" value="true" />
								<%= finished.get(counter) %>
							</html:link>
						</td>
						<td>
							<html:link action="/applications1"> 
								<html:param name="reviewer" value="<%= reviewers.get(counter) %>" />
								<html:param name="finished" value="false" />
								<%= unfinished.get(counter) %>
							</html:link>
						</td>
					</tr>
				</logic:iterate>
			</table>
				
		</div>
		</div>
	</body>
</html:html>